package com.sunchp.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by sunchangpeng
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        ProducerService producerService = context.getBean(ProducerService.class);
        producerService.sendMessage("hello");
    }
}
